layui.config({
    base: '/plugins/module/'
});
layui.use(['table', 'layer', 'form', 'cstmodules'], function () {
    var mymod = layui.cstmodules;
    var $ = layui.jquery;
    var table = layui.table;
    var layer = layui.layer;
    var form = layui.form;
    var Reward = {
        param: {
            tableColumn: [
                [
                    {field: 'numbers', sort: true, title: '学号', align: 'center'}
                    , {field: 'name', title: '名字', align: 'center'}
                    , {field: 'development', title: '部门', align: 'center'}
                    , {field: 'major', title: '专业', align: 'center'}
                    , {field: 'classes', title: '班级', align: 'center'}
                    , {field: 'level_name', title: '获取级别', align: 'center'}
                ]
            ],
            limit: 50,
            limits: [50, 100, 150, 300]
        }
    }
    mymod.initPageTableMethod(table, "tab_showReward", "/reward/showReward1", Reward.param.tableColumn, "null", null, Reward.param.limit, Reward.param.limits, 225);


    //模糊查询
    form.on("submit(doSearch)", function (data) {
        table.reload('tab_showReward',{
            where: data.field,
            page: {
                curr: 1
            }
        });
        return false;
    });
});
